import Vue from 'vue'
import Router from 'vue-router'
import VerifyFace from '@/pages/VerifyFace'
import DetectFace from '@/pages/DetectFace'
// import TestUpload from '@/pages/TestUpload'
import VerifySys from '@/pages/VerifySys'
import VerifySys2 from '@/pages/VerifySys2'
import Login from '@/pages/Login'
import StaffLib from '@/pages/StaffLib'
import LiveMonitor from '@/pages/LiveMonitor'
import TestStream from '@/pages/TestStream'
import Rybk from '@/pages/rybk'
import VIP from '@/pages/showVip'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: '首页',
      meta: {login: true, new: true},
      component: Login
    },
    {path: '/monitor', name: '实时监控-摄像头', meta: {new: true, menuIndex: 1}, component: VerifySys2},
    {path: '/face', name: '实时监控', meta: {new: true, menuIndex: 1}, component: VerifySys},
    {path: '/liveMonitor', name: '地图监控', meta: {new: true, menuIndex: 1}, component: LiveMonitor},
    {path: '/rybk', name: '人员布控', meta: {new: true, menuIndex: 2}, component: Rybk},
    {path: '/staffLib', name: '人员库', meta: {new: true, menuIndex: 3}, component: StaffLib},
    {path: '/login', name: '登陆', meta: {new: true, login: true}, component: Login},
    {path: '/testStream', name: '测试流', meta: {new: true, login: true}, component: TestStream},
    {path: '/face/detect', name: '人脸对比', meta: {old: true}, component: DetectFace},
    // {path: '/face/test', name: '测试', component: TestUpload},
    {path: '/face/verify', name: '人脸识别', meta: {old: true}, component: VerifyFace},
    {path: '/vip', name: 'VIP', meta: {new: true, nomenu: true}, component: VIP}
  ]
})
